
fields = {
'org_study_id':{'type':'common','xpath':'id_info/org_study_id'},
'nct_id':{'type':'common','xpath':'id_info/nct_id'},
'brief_title':{'type':'common','xpath':'brief_title'},
'official_title':{'type':'common','xpath':'official_title'},
'lead_sponsor_agency':{'type':'common','xpath':'lead_sponsor/agency'},
'lead_sponsor_class':{'type':'common','xpath':'lead_sponsor/agency_class'},
'collaborator_agency':{'type':'common','xpath':'collaborator/agency'},
'collaborator_class':{'type':'common','xpath':'collaborator/agency_class'},
'sponsor':{'type':'common','xpath':'source'},
'brief_summary':{'type':'textblock','xpath':'brief_summary/textblock'},
'overall_status':{'type':'common','xpath':'overall_status'},
'start_date':{'type':'common','xpath':'start_date'},
'completion_date_type':{'type':'attrib','xpath':'completion_date'},
'completion_date':{'type':'common','xpath':'completion_date'},
'primary_completion_date_type':{'type':'attrib','xpath':'primary_completion_date'},
'primary_completion_date':{'type':'common','xpath':'primary_completion_date'},
'phase':{'type':'common','xpath':'phase'},
'study_type':{'type':'common','xpath':'study_type'},
'has_expanded_access':{'type':'common','xpath':'has_expanded_access'},
'primary_purpose':{'type':'common','xpath':'primary_purpose'},
'condition':{'type':'common','xpath':'condition'},
'intervention':{'type':'intervention','xpath':'type/name'},
'gender':{'type':'common','xpath':'eligibility/gender'},
'min_age':{'type':'common','xpath':'eligibility/minimum_age'},
'max_age':{'type':'common','xpath':'eligibility/maximum_age'},
'healthy_volunteers':{'type':'common','xpath':'eligibility/healthy_volunteers'},
'primary_outcome_measure':{'type':'common','xpath':'primary_outcome/measure'},
'primary_outcome_enrollment_type':{'type':'attrib','xpath':'primary_outcome_enrollment'},
'primary_outcome_enrollment':{'type':'common','xpath':'enrollment'},
'location_facility':{'type':'location_facility','xpath':'location_facility'},
'location_country':{'type':'common','xpath':'location_countries/country'},
'results_citation':{'type':'common','xpath':'results_reference/citation'},
'keyword':{'type':'keyword','xpath':'keyword'},
'verification_date':{'type':'common','xpath':'verification_date'},
'study_first_submitted':{'type':'common','xpath':'study_first_submitted'},
'study_first_submitted_qc':{'type':'common','xpath':'study_first_submitted_qc'},
'study_first_posted_type':{'type':'attrib','xpath':'study_first_posted'},
'study_first_posted':{'type':'common','xpath':'study_first_posted'},
'last_update_submitted':{'type':'common','xpath':'last_update_submitted'},
'last_update_submitted_qc':{'type':'common','xpath':'last_update_submitted_qc'},
'last_update_posted_type':{'type':'attrib','xpath':'last_update_posted'},
'last_update_posted':{'type':'common','xpath':'last_update_posted'},
'condition_mesh_term':{'type':'mesh','xpath':'condition_browse/mesh_term'},
'intervention_mesh_term':{'type':'mesh','xpath':'intervention_browse/mesh_term'},
'url':{'type':'common','xpath':'required_header/url'}
}
